<?php
/**
 * Created by JetBrains PhpStorm.
 * User: HoangAlex
 * Date: 6/5/12
 * Time: 3:19 PM
 * To change this template use File | Settings | File Templates.
 */
?>
<ul>
    <li><?php $this->Html->link('All Category', '/'); ?></li>
    <?php
        $loaisanphams = $this->requestAction("/loaisanphams/menu/c:$catId/p:$pdId/ ");
        foreach($loaisanphams as $loaisanpham) {
            extract($loaisanpham);
            $level = ($parent_id == 0) ? 1 : 2;
            $url = '';
        }
    ?>
</ul>